﻿package core.ui.controls
{
    import flash.display.*;
    import flash.geom.*;

    public class HistoryEntryInfo extends Sprite
    {
        public var nr:int;
        public var disabled:Boolean;
        public var marked:Boolean;

        public function HistoryEntryInfo(param1:int, param2:String, param3:BitmapData, param4:Boolean, param5:Boolean, param6:int)
        {
            var _loc_7:Matrix = null;
            this.nr = param1;
            this.marked = param5;
            this.disabled = param4;
            if (param5)
            {
                _loc_7 = new Matrix();
                _loc_7.createGradientBox(param6, 36, 90 / (180 / Math.PI), 0, 0);
                graphics.beginGradientFill("linear", [6273533, 34534], [1, 1], [0, 255], _loc_7);
                graphics.drawRect(0, 0, param6, 26);
                graphics.beginFill(0, 0.05);
                graphics.drawRect(0, 0, param6, 1);
                graphics.beginFill(8177663, 0.7);
                graphics.drawRect(0, 0, 1, 39);
                graphics.beginFill(8177663, 0.7);
                graphics.drawRect((param6 - 1), 0, 1, 39);
                graphics.endFill();
            }
            else
            {
                graphics.beginFill(0, 0);
                graphics.drawRect(0, 0, param6, 26);
            }
            var _loc_8:* = new Literal(param2, false, param4 ? (7829367) : (param5 ? (16777215) : (3355443)));
            _loc_8.x = 28;
            _loc_8.y = 3;
            addChild(_loc_8);
            var _loc_9:* = new Bitmap(param3);
            _loc_9.x = 8;
            _loc_9.y = 4;
            _loc_9.alpha = param4 ? (0.4) : (1);
            addChild(_loc_9);
            return;
        }// end function

    }
}
